package tds.model20.version1;

/**
 * @author tds
 * @version 1.0.0
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Component
 * @Description 组合对象的声明接口
 * @Date 2020/2/5 17:24
 */
public abstract class Component {
    protected String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract void add(Component component);

    public abstract void remove(Component component);

    public abstract void display();
}
